from django import forms
from django.contrib.auth.forms import UserCreationForm,UserChangeForm
from .models import Readers

class ReadersCreationForm(UserCreationForm):
    class Meta(UserCreationForm.Meta):
        model=Readers
        fields=UserCreationForm.Meta.fields+('student_number','contact_info','name')

class ReadersChangeForm(UserChangeForm):
    class Meta:
        model=Readers
        fields=('username','email','student_number','contact_info','name')
